package cn.darkhorse.alarm.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author maoguanjun
 * @since 2023-04-17
 */
@Getter
@Setter
  @TableName("alarm_record_time")
@ApiModel(value = "AlarmRecordTime对象", description = "")
public class AlarmRecordTime implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("主键")
        @TableId(value = "id", type = IdType.AUTO)
      private Long id;

      @ApiModelProperty("报警记录表ID")
      private Long alarmRecordId;

      @ApiModelProperty("报警状态（0：未处理1：已处理）")
      private Integer alarmStatus;

      @ApiModelProperty("报警时间")
      private LocalDateTime alarmDate;

      @ApiModelProperty("设备ID")
      private Long deviceId;

      @ApiModelProperty("参数ID")
      private Long parameterId;

      @ApiModelProperty("报警类型0：开关量1：参数")
      private Integer parameterType;

      @ApiModelProperty("报警类型：0/fasle 1/true 2/变化 3/限值报警 4/连续报警")
      private Integer alarmType;

      @ApiModelProperty("报警频率：0/实时报警 1/间隔报警")
      private Integer alarmFrequency;

      @ApiModelProperty("限值报警 限值类型：0小于限值 1大于限值")
      private Integer limitType;

      @ApiModelProperty("连续报警报警值")
      private BigDecimal immediatelyValue;

      @ApiModelProperty("开关量报警类型 0:true--fale 1:false--true")
      private Integer changeType;


}
